package com.easylinkin.linkappapi.circuit.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.circuit.dto.RailGiveAlarmTypeConfigDTO;
import com.easylinkin.linkappapi.circuit.entity.RailGiveAlarmTypeConfig;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.circuit.vo.RailGiveAlarmTypeConfigVO;

import java.util.List;

public interface IRailGiveAlarmTypeConfigService  extends   IService<RailGiveAlarmTypeConfig> {
    IPage<RailGiveAlarmTypeConfigVO> selectPage(Page page, RailGiveAlarmTypeConfigDTO customQueryParams);

    List<RailGiveAlarmTypeConfigVO> selectList(RailGiveAlarmTypeConfigDTO requestModel);

    void addOrEditBatch(List<RailGiveAlarmTypeConfig> recordList);

    /**
     * 初始化所有告警配置
     */
    void initAllConfig(String tenantId);

    /**
     * 查询计划值
     * @param requestModel
     * @return
     */
    List<RailGiveAlarmTypeConfigVO> planValue(RailGiveAlarmTypeConfigDTO requestModel);
}
